package com.ks.app.admin.service;

import java.util.List;

import com.ks.app.admin.hibernate.KMerBaseSet;
import com.ks.app.admin.hibernate.KsMerAuthen;
import com.ks.app.admin.hibernate.KsMerchantRegist;
import com.ks.app.admin.util.Pager;



public interface MerchantService {	
	 	public List<KsMerchantRegist> getKsMer();
	    public String login(String ksmer);//登陆
	    
	    //第二个参数是留着做日志用的
	    public int saveKsMer(KsMerchantRegist ksmer);//保存商家信息
		public long addKsMer(KsMerchantRegist addKsMer,String mername) ;//添加用户
		public long updateKsMer(KsMerchantRegist KsMer,String mername) ;//更新商家信息
		public int deleteKsMer(KsMerchantRegist idlist,String mername);//删除商家
		public long updateSet(KMerBaseSet baseSet,String mername);//更新产品折扣和佣金率
		
		//不同条件查询商家
		public List<KsMerchantRegist> GetKsMerList(String uiid,Pager pager);
		public List<KsMerchantRegist> GetKsMer(String uiid);
		public List<KsMerchantRegist> GetKsMer(String mername,String pwd);
		public List<KsMerchantRegist> GetKsMerByMername(String mername,Pager pager);
		public List<KsMerchantRegist> GetKsMerByMerGroup(String Group);
		public List<KsMerchantRegist> getKsMerByTerm(String uiid,String optionId,Pager pager);
		
		//相关认证商家信息查询
		public List<KsMerAuthen> GetAuthenList();
		public List<KsMerAuthen> GetAuthenByMername(String mername,Pager pager);
		public List<KsMerAuthen> GetAuthenList(String rid,Pager pager);
		public List<KsMerAuthen> GetAuthen();
		
		
		
}
